package com.stagecommon.common.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.stagecommon.common.pojo.Category;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author: yxl
 * @since: 2022-02-09
 **/
@Data
public class CategoryVo implements Serializable {
    @TableId(value = "category_id", type = IdType.AUTO)
    private Integer categoryId;
    private String categoryName;
    private Integer categoryLevel;
    private Integer parentId;
    private Byte isAlive;
    @TableField(exist = false)
    private String parentName;
    private List<Category> children;
}
